package org.jeecg.modules.util;

import org.jeecg.boot.starter.rabbitmq.client.RabbitMqClient;
import org.jeecg.common.base.BaseMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class CommonDeviceUtil {

    @Autowired
    private RabbitMqClient rabbitMqClient;

    public void connectDevice(String deviceId){
        BaseMap bm = new BaseMap();
        bm.put("deviceId",deviceId);
        rabbitMqClient.sendMessage("deviceReConnect",bm);
    }

}
